import '../core/hi_net.dart';
import '../request/base_request.dart';
import '../request/cancel_like_request.dart';
import '../request/like_request.dart';

class LikeDao{
    static like(String vid,bool like) async {
        BaseRequest request = like ? LikeRequest() : CancelLikeRequest();
        request.pathParams = vid;

        var result = await HiNet.getInstance().fire(request);
        return result;
    }
}